//
//  MVTableList.m
//  __PRODUCTNAME__
//
//  Created by QC.L on 16/08/15
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "MVTableList.h"
#import "MVConllectionList.h"

@implementation MVTableList

+ (NSDictionary *)objectClassInArray{
    return @{@"mvlist" : [MVConllectionList class]};
}

- (void)setValue:(id)value forKey:(NSString *)key {

    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"mvlist"]) {
        
        NSMutableArray<MVConllectionList *> *collectionListArray = [NSMutableArray array];
        for (NSDictionary *collectionListDic in value) {
            
            MVConllectionList *mvCollectionList = [MVConllectionList baseModelWithDic:collectionListDic];
            [collectionListArray addObject:mvCollectionList];
        }
        _mvlist = collectionListArray;
    }
}


@end
